Introduction

As with any coding project, you’ll want to upload your work on a GitHub repository so that you can access different versions as needed, and to facilitate collaboration. You must clone the GitHub repository to your machine and push your code at the end of each exercise of this course.

Generic guidelines

Before you get started with the Little Lemon database project development, you'll need to establish somewhere for the project to reside. In this exercise, you’ll create a repository on GitHub and clone it to a local repository.

Prerequisites

To complete this lab, you need to create a GitHub account. You need also to download and install Git for your OS from the Git downloads page .

Scenario

Little Lemon need you to help them set up a booking system to keep track of which guests are visiting the restaurant and at what times. In this first stage of the task, you need to:

You can carry out these steps using your knowledge of version control and online collaboration. Review the instructions that follow for guidance on completing these tasks.

Instructions

1. Navigate to your GitHub account and add a new repository.

Taken from: https://docs.github.com/en/get-started/quickstart/create-a-repo#create-a-repository

2. Name the new project db-capstone-project

3. Click Create repository

Taken from: https://docs.github.com/en/get-started/quickstart/create-a-repo#create-a-repository

4. Select the code icon in the repo and copy the HTTPS address.

5. Navigate to a local directory on your machine that you wish to store the project at.

6. Initialize the repo using the following code:

git init

7. Create a readme.md file and write the message "setting up repository for project"

8. To add files to the repo type:

git add readme.md

9. Commit the changes with a meaningful message, such as:

git commit -m "adding project readme" 

10. Next, point the directory toward your git repository by using the git remote add command along with the destination URL from step 4.

git remote add origin <REMOTE_URL>

11. Verify the remote URL:

git remote -v

12. Push your repository.

git push -u origin master

You will be prompted to enter your GitHub details. Finally check your GitHub account to ensure the update of the readme file.

Conclusion

In this reading, you helped Little Lemon to create an online repo for your code. You also set up a local repository on your machine and a readme file that provides key details on the project.